<%@ include file="/common/taglibs.jsp"%>
<head>
    <title><fmt:message key="projectDetail.title"/></title>
    <meta name="menu" content="PersonMenu"/>
</head>



<div class="col-sm-3">
    <h2><fmt:message key='projectDetail.heading'/></h2>
</div>

 

<div class="col-sm-7">
    <form:errors path="*" cssClass="alert alert-danger alert-dismissable" element="div"/>
    <form:form commandName="project" method="post" action="projectForm" id="projectForm" cssClass="well">
	    <form:hidden path="id"/>
	    <spring:bind path="project.projectNm">
	    <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
	    	</spring:bind>
	
	    	<appfuse:label styleClass="control-label" key="project.projectNm"/>	    		    	
	        <form:input path="projectNm" id="projectNm" maxlength="50" autofocus="true" cssClass="form-control"/>
	        <form:errors path="projectNm" cssClass="help-inline"/>
	 	</div>
	
	    <spring:bind path="project.comment">
	    <div class="form-group${(not empty status.errorMessage) ? ' has-error' : ''}">
	    	</spring:bind>
	       	<appfuse:label styleClass="control-label" key="project.comment"/>
	        <form:input path="comment" id="comment" maxlength="50" cssClass="form-control"/>
	        <form:errors path="comment" cssClass="help-block"/>
	    </div>
	
	    <div class="form-group form-actions">
	        <button type="submit" class="btn btn-primary" name="save" onclick="bCancel=false">
		        <i class="icon-ok icon-white"></i> <fmt:message key="button.save"/>
	        </button>
	
	        <c:if test="${not empty project.id}">
	          <button type="submit" class="btn btn-default" name="delete" onclick="bCancel=true;return confirmMessage(msgDelConfirm)">
	              <i class="icon-trash"></i> <fmt:message key="button.delete"/>
	          </button>
	        </c:if>
	
	        <button type="submit" class="btn btn-default" name="cancel" onclick="bCancel=true">
	            <i class="icon-remove"></i> <fmt:message key="button.cancel"/>
	        </button>
	    </div>
    </form:form>
</div>

 

<v:javascript formName="project" cdata="false" dynamicJavascript="true" staticJavascript="false"/>

<script type="text/javascript" src="<c:url value='/scripts/validator.jsp'/>"></script>